<?php
    $support = new Default_Model_Support();
    $listSupport = $support->listItem();
    if(count($listSupport) > 0) :
?>
<div class="blocks">
    <div class="heading-blocks">
        <h4>Hỗ trợ online</h4>
    </div>
    
    <div class="content-blocks">
        <?php foreach($listSupport as $value) : ?>
        <p><?php echo $value['name'].': '.$value['phone']; ?></p>
        <p>
            <?php if($value['type_nick'] == 'Yahoo') : ?>
            <a href="ymsgr:sendim?<?php echo $value['nickname']; ?>">
                <img src="http://opi.yahoo.com/online?u=<?php echo $value['nickname']; ?>&amp;m=g&amp;t=2" />
            </a>
            <?php else : ?>
            <a href="skype:<?php echo $value['nickname']; ?>?chat">
                <img src="<?php echo $this->DirImg; ?>/skype.png" />
            </a>
            <?php endif; ?>
        </p>
        <?php endforeach; ?>
    </div>
</div>
<!-- End .blocks -->
<?php endif; ?>